﻿@using BestTrader.Cms.Models
@using BestTrader.Cms.ViewModels
@{
    ViewData["Title"] = "用户管理";
    var AgentManagers = ViewData["AgentManagers"] as List<ItemsDetailModel>;
    var CurrencyTypes = ViewData["CurrencyTypes"] as List<ItemsDetailModel>;
}

<form class="layui-form layui-form-pane" style="width:90%;">
    @Html.AntiForgeryToken()
    @Html.Hidden("Id")
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">代理商</label>
        <div class="layui-input-inline">
            <select name="ProjectManagerId" class="ProjectManagerId" lay-filter="ProjectManagerId" lay-verify="required">
                @if (AgentManagers != null)
                {
                    foreach (var item in AgentManagers)
                    {
                        <option value="@item.ItemCode">@(item.ItemData)(@(item.ItemName))</option>
                    }
                }
            </select>
        </div>
        <div class="layui-form-mid layui-word-aux">选择要设置的代理商</div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">货币类型</label>
        <div class="layui-input-inline">
            <select name="ProjectInfo" class="ProjectInfo" lay-filter="ProjectInfo" lay-verify="required">
                @if (CurrencyTypes != null)
                {
                    foreach (var item in CurrencyTypes)
                    {
                        <option value="@(item.ItemCode)" currencyname="@(item.ItemName)">@(item.ItemName)(@(item.ItemCode))</option>
                    }
                }
            </select>
        </div>
        <div class="layui-form-mid layui-word-aux">货币类型</div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">汇率</label>
        <div class="layui-input-inline">
            <input type="text" name="ProjectPrice" class="layui-input ProjectPrice" lay-verify="required|number" placeholder="0">
        </div>
        <div class="layui-form-mid layui-word-aux">人民币对外汇的比价</div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs-offset1 layui-col-xs5">
        <div class="layui-input-inline">
            <button class="layui-btn layui-btn-sm layui-btn-fluid" lay-submit="" lay-filter="addManager">确定</button>
            @*<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>*@
        </div>
    </div>
</form>
@section Scripts{
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" src="~/js/exchangerate/exchangerateAdd.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}



